var Quotes = Class.create();

Object.extend(Quotes, {
  applyTranslatable: function() {
    quote = $('quote-holder');
    if (quote.hasClassName('translatable')) {
      quote.removeClassName('translatable');

      quote.observe("mouseover", function() {
        quote.descendants().each(function(el) {
          if (el.hasClassName('original'))
            el.hide();
          else if (el.hasClassName('translated'))
            el.show()
        });
      });
      
      quote.observe("mouseout", function() {
        quote.descendants().each(function(el) {
          if (el.hasClassName('original'))
            el.show();
          else if (el.hasClassName('translated'))
            el.hide()
        });
      });
      
    }
  }
});

